/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  Fee_Cfg.h
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL Flash EEPROM Emulation
 * @date 2025-03-25 19:03:22
 */

#ifndef FEE_CFG_H
#define FEE_CFG_H

#ifdef __cplusplus
extern "C"{
#endif

#include "Fee_Types.h"

/* Fee Error check */
#define FEE_DEV_ERROR_DETECT    (STD_ON)

/* Fee API definition */
#define FEE_VERSION_INFO_API    (STD_ON)

#define FEE_SETMODE_API_SUPPORTED    (STD_ON)

#define FEE_CHECKSUM_SUPPORTED    (STD_OFF)

#define FEE_CANCEL_API    (STD_OFF)

/* Fee Virtual page size */
#define FEE_VIRTUAL_PAGE_SIZE               4U

/* Fee Date cache size */
#define FEE_DATA_CACHE_SIZE               1024U

/* Fee Info cache size */
#define FEE_INFO_CACHE_SIZE               1024U


/* Fee NVM END callback API */
#define FEE_NVM_JOB_END_NOTIFICATION_DECL   
#define FEE_NVM_JOB_END_NOTIFICATION        

/* Fee NVM ERROR callback API */
#define FEE_NVM_JOB_ERROR_NOTIFICATION_DECL  
#define FEE_NVM_JOB_ERROR_NOTIFICATION       

/* Fee CFG Number Info */
#define FEE_PAGE_DEV_NUMBER        1U
#define FEE_BLOCKS_CFG_NUMBER            5U

#define FEE_BLOCKS_FULL_SIZE                640U
#define FEE_BLOCKS_SIZE_MAX                512U

/* Fee CFG Index Info */
#define FeeBlockConfiguration_0     1U
#define FeeBlockConfiguration_1     2U
#define FeeBlockConfiguration_2     3U
#define FeeBlockConfiguration_3     4U
#define FeeBlockConfiguration_4     5U

/* Fee CFG structure */
extern const Fee_PageDeviceType Fee_PageDevice[ FEE_PAGE_DEV_NUMBER ];
extern const Fee_BlockConfigType Fee_BlockConfig[ FEE_BLOCKS_CFG_NUMBER ];

#ifdef __cplusplus
}
#endif

#endif /* FEE_CFG_H */
/** @} */
